<form data-model="edit" class="layui-form-custom-panel" id="attrEdit">
    <input type="hidden" name="id" value="{{>id}}">
    <div class="layui-form layui-form-pane">
        <div class="layui-form-item">
            <label class="layui-form-label">类别名称：</label>
            <div class="layui-input-inline">
                <input type="tel" name="name" lay-verify="名称" required lay-verify="required" placeholder="请输入标题"
                       value="{{>name}}" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否启用：</label>
            <div class="layui-input-block">
                <input type="checkbox" name="enabled" lay-skin="switch" lay-filter="switchTest" lay-text="开启|关闭"
                       {{if enabled}} checked="checked" {{/if}} >
            </div>
        </div>
    </div>
</form>